{include('Layout/header')}
<div class="row row-bgcolor">
    <div class='col-md-12 content-title'>
        <h3>用户列表</h3>
    </div>
    <div class='col-md-8 content col-md-offset-2'>
        <div class='select-border'>
            <form class="form-inline" action="{\Rexzy::url('admin/userlist')}" method='post'>
                <div class="form-group">
                  <label class="sr-only" for="seach"></label>
                  <input type="text" class="form-control input-sm" id="seach" name='seach' placeholder="请输入关键字">
                </div>
                <button type="submit" class="btn btn-default ulist-bt">搜索</button>
            </form>
        </div>
        <div class='table-list'>
            <table class="table table-hover">
                <colgroup>
                    <col width="5">
                    <col width="20%">
                    <col width="25%">
                    <col width="30%">
                    <col width="20%">
                </colgroup>
                <thead>
                    <tr>
                        <th></th>
                        <th>用户名</th>
                        <th>昵称</th>
                        <th>邮箱</th>
                        <th>用户组</th>
                    </tr>
                </thead>
                <tbody>
                    {if $total == 0}{/php}
                    <td colspan='5'><h6 class='list-none'>没有{$keyword}用户</h6></td>
                    {else}
                    {foreach $userList $key $user}
                        <tr><td><input class='select-box' type='checkbox' value="{$user['userid']}"/></td><td>
                        <a class='line-btn' href="{$editurl}?userid={$user['userid']}">{$user['name']}</td><td>
                        {$user['screenName']}</td><td>
                        {$user['email']}</td>
                        <td>{$user['groupname']}</td></tr>
                    {/foreach}
                    {php}{/if}
                </tbody>
            </table>
        </div>
        <div class="paging-border">
            <div class='handle-user'>
                <label class="checkbox-inline">
                    <input type='checkbox' id='select_all' />选择全部
                </label>
                <button type="submit" id="user_delete_btn">删除选中项</button>
                {if $returnHome == true}{/php}
                    <a href="{$url}" class="return-list">返回列表首页</a>
                {php}{/if}
            </div>
            <nav>
                <ul class="pagination">
                    {php}
                        $this->page->paging( $total, $rang = 7, $page, $length, $url, $condition );
                    {/php}
                </ul>
            </nav>
        </div>
    </div>
</div>
{include('Layout/footer')}